package com.mashibing.mall.product.param;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 属性&属性分组关联 参数类
 */
@Data
public class AttrGroupRelationParam {

//    @NotNull(message = "属性&属性分组关联 id 不能为空", groups = {UnrelateAttr.class})
    private Long id;

    @NotNull(message = "属性 id 不能为空", groups = {UnrelateAttr.class})
    private Long attrId;

    @NotNull(message = "属性组 id 不能为空", groups = {UnrelateAttr.class})
    private Long attrGroupId;

    public @interface UnrelateAttr {}
}
